CC=gcc
CFLAGS= -Wall -O -g

OBJ= main.o 
TARGET= a.out
all: ${TARGET}
${TARGET} : ${OBJ}
	${CC} -o $@ $^
main.o: test.c
	$(CC) $(CFLAGS) -c $< -o $@



.PHONY: clean
clean:
	rm -f $(OBJ)